I'm trying to get the image cropper to work with umbraco 7.1.8 .. I've replaced the Upload datatype on the "Image"-media type with the cropper and made a custom crop called 'frontpage'.
I can display the image with GetCropUrl("cropperalias","frontpage") .. But it is not cropped, when it is displayed. I also expected to see a cropped version in the media folder on the file system, but I can only find the original image. The cropper should be saving generated crops to the file system, right?
What does your code for rendering the image look like? In the documentation above there should be plenty of examples on how to retrieve the cropped images etc.
Jan: Yes I did (mis)read the documentation.. Too many parameters on GetCropUrl, as I was using UmbracoHelper.. Should look like this @Umbraco.Media(heroImage).GetCropUrl("forside") Everything works now, thanks :D
[umb7.1.8] Can't crop images
Hi guys,
I'm trying to get the image cropper to work with umbraco 7.1.8 .. I've replaced the Upload datatype on the "Image"-media type with the cropper and made a custom crop called 'frontpage'.
I can display the image with GetCropUrl("cropperalias","frontpage") .. But it is not cropped, when it is displayed. I also expected to see a cropped version in the media folder on the file system, but I can only find the original image. The cropper should be saving generated crops to the file system, right?
TIA,
Simon
Hi Simon
Have you had a look at the documentation for the Image cropper? http://our.umbraco.org/documentation/Using-Umbraco/Backoffice-Overview/Property-Editors/Built-in-Property-Editors-v7/Image-Cropper
What does your code for rendering the image look like? In the documentation above there should be plenty of examples on how to retrieve the cropped images etc.
Hope this helps.
/Jan
Did you upgrade Umbraco from 7.0.x to 7.1.x?
You might need to add a few lines in web.config
Jan: Yes I did (mis)read the documentation.. Too many parameters on GetCropUrl, as I was using UmbracoHelper..
Should look like this @Umbraco.Media(heroImage).GetCropUrl("forside")
Everything works now, thanks :D
/Simon
Hi Simon
Glad to hear you godt it working :) Remember to mark the post as solved.
Cheers, Jan
is working on a reply...